package com.example.demo02.utils;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "统一响应数据")
public class ResponseData<T> {
    @Schema(description = "状态码")
    private String code;
    @Schema(description = "错误信息")
    private String errorMsg;
    @Schema(description = "是否成功")
    private Boolean result;
    @Schema(description = "返回内容")
    private T data;
}
